Controller for internal combustion engine

ABSTRACT

A controller according to the present disclosure, in each combustion cycle that composes a change cycle, calculates the average μ n  of control amounts from the first combustion cycle to the nth (1&lt;=n&lt;=N) combustion cycle and calculates the error μ n -μ o  of the average μ n  with respect to the average μ o  of a reference normal population. Also, the controller sets both a positive threshold Z α/2 *σ o /n 1/2  and a negative threshold −Z α/2 *σ o /n 1/2  based on the standard error σ o /n 1/2  of the reference normal population in the case where the number of data is n. Then, the controller chooses an operation amount to be changed from a plurality of operation amounts, based on a comparison between a series of the errors μ n -μ o  and a series of the positive thresholds Z α/2 *σ o /n 1/2  and a comparison between the series of the errors μ n -μ o  and a series of the negative thresholds −Z α/2 *σ o /n 1/2 .

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority to Japanese Patent Application No. 2018-105789, filed on Jun. 1, 2018, which is incorporated by reference herein in its entirety.

BACKGROUND Field

The present disclosure relates to a controller for an internal combustion engine, especially a controller for an internal combustion engine that feeds back the fluctuation of a control amount to an operation amount by using a hypothesis test and a statistical decision.

Background Art

As a controlled object having stochastic dispersion, for example, combustion that is one of the controlled objects of an internal combustion engine can be exemplified. When feed-back control is applied to a control amount related to such a controlled object, the control has no choice but to be conservative to prevent overcontrolling caused by the dispersion of the controlled object. However, it is difficult to ensure quick response with respect to the fluctuation of the control amount by conservative control.

The fluctuation of the control amount is a fluctuation caused by stochastic dispersion that a system has inherently or a fluctuation caused by a factor other than a stochastic one. The fluctuation of the control amount that should be treated by the feed-back control is the latter one caused by the fluctuation of a condition of the controlled object. Therefore, for ensuring the quick response while preventing overcontrolling, it is required to determine whether the fluctuation of the control amount is the former one or the latter one. However, in general, a lot of data is needed to statistically make a determination of a cause of the fluctuation of the control amount. The accuracy of the determination improves as the number of data increases, but the quick response decreases because it takes time to collect data.

For increasing the quick response, it is need to execute a determination with as little data as possible. In this regard, in the following Non-patent Literature 1, a method of feed-backing the fluctuation of the control amount to an operation amount by using a hypothesis test and a statistical decision. Specifically, Non-patent Literature 1 discloses an application example of the hypothesis test and the statistical decision to the feed-back control for controlling the crank angle at which combustion pressure is maximized (hereinafter, referred to as “LPP”) to a reference value.

If the expectation of LPP is equal to the reference value, a value obtained by dividing the deviation of the average of LPP from the reference value by the sampling error of the average (hereinafter, referred to as “Z”) follows a standard normal distribution. If the data of LPP from the first cycle to the nth cycle is obtained, the average here is the average of n pieces of data from the first cycle to the nth cycle. Also, the sampling error of the average is obtained by dividing the standard deviation of LPP by the square root of the number of data.

Whether Z follows the standard normal distribution or not is determined by comparing Z with a threshold calculated from a significance level. If Z is not within a reliable range defined by a negative threshold and a positive threshold, it is determined that Z doesn't follow the standard normal distribution, that is, the expectation of LPP is not equal to the reference value. If Z is within the reliable range, it is determined that Z follows the standard normal distribution, that is, the expectation of LPP is equal to the reference value.

That the expectation of LPP is equal to the reference value means that the time-series fluctuation of LPP is a fluctuation caused by stochastic dispersion that a system has inherently. In the contrast, that the expectation of LPP is not equal to the reference value means that the time-series fluctuation of LPP is a fluctuation caused by a factor other than a stochastic one. Therefore, by calculating Z for each cycle and determining whether Z is within the reliable range, it becomes possible to determine whether or not the fluctuation of LPP is one that should be treated by the feed-back control, for each cycle.

According to the feed-back control disclosed specifically in Non-patent Literature 1, the value obtained by adding the product of the threshold and the standard error to the reference value of LPP is set as an upper limit of LPP, and, when the average of LPP exceeds the upper limit, an ignition timing is advanced. Also, the value obtained by subtracting the product of the threshold and the standard error from the reference value of LPP is set as a lower limit of LPP, and, when the average of LPP exceeds the lower limit, an ignition timing is retarded. According to the determination method disclosed in Non-patent Literature 1, it is possible to execute statistical determination without a lot of data. By conducting the feed-back control based on this determination, it is possible to prevent overcontrolling to the fluctuation of the control amount caused by stochastic dispersion and also ensure quick response with respect to the fluctuation of the control amount caused by a factor other than a stochastic one.

Patent Documents 1, 2, and 3 listed below are examples of documents showing the state of the art in the technical field to which the present disclosure relates.

Patent Document 1: JP2007-198313A

Patent Document 2: JP2002-322938A

Patent Document 3: JP2011-089470A

Non-patent Literature 1: Jinwu Gao, Yuhu Wu, Tielong Shen, A statistical combustion phase control approach of SI engines, Mechanical Systems and Signal Processing 85(2017) 218-235

SUMMARY

A plurality of operation amounts affect a control amount related to combustion of the internal combustion engine, for example, CA50 (a crank angle at which a combustion ratio becomes 50%) and LPP. In the case of LPP exemplified in Non-patent Literature 1, not only an ignition timing but also an EGR valve opening affects LPP. However, Non-patent Literature 1 only discloses correcting the ignition timing as the feed-back control of LPP. That is, Non-patent Literature 1 doesn't consider how to treat in the case where there are a plurality of operation amounts affecting the control amount.

The present disclosure has been devised in view of such problems, and an object of the present disclosure is to, when a plurality of operation amount affects a control amount related to combustion of an internal combustion engine, by using the plurality of operation amounts effectively, prevent overcontrolling to the fluctuation of the control amount caused by stochastic dispersion and also ensure quick response with respect to the fluctuation of the control amount caused by a factor other than a stochastic one.

The present disclosure provides a controller for an internal combustion engine. The controller according to the present disclosure comprises at least one processor and at least one memory coupled to the at least one processor. The at least one memory includes at least one computer-executable program that upon execution causes the at least one processor to execute control amount calculation processing and operation amount change processing. The control amount calculation processing is processing of calculating a control amount relating to combustion of the internal combustion engine for each combustion cycle, based on information from a sensor which detects the state of the internal combustion engine. The operation amount change processing is processing of changing at least one operation amount among a plurality of operation amounts affecting the control amount for each change cycle, one change cycle consisting of N (2<=N) combustion cycles.

In the operation amount change processing, the at least one processor operates to choose the reference normal population of the control amount under the current operating condition of the internal combustion engine from a plurality of reference normal populations set for each operating condition of the internal combustion engine. Moreover, the at least one processor operates to execute, in each combustion cycle from the first combustion cycle to the Nth combustion cycle that composes the change cycle, average calculation processing, error calculation processing and threshold set processing. The average calculation processing is processing of calculating a n-cycle average that is the average of the control amounts from the first combustion cycle to the nth (1<=n<=N) combustion cycle. The error calculation processing is processing of calculating a n-cycle error that is the error of the n-cycle average with respect to the average of the reference normal population. The threshold set processing is processing of setting both a positive change determination threshold and a negative change determination threshold with respect to the n-cycle error, based on the standard error of the reference normal population in a case where the number of data is n. The at least one processor operates to choose an operation amount to be changed from the plurality of operation amounts, based on a comparison between a series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and a series of the positive change determination thresholds from the first combustion cycle to the Nth combustion cycle and a comparison between the series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and a series of the negative change determination thresholds from the first combustion cycle to the Nth combustion cycle. One or more operation amounts may be chosen.

As for one embodiment of the control amount calculation processing, the at least one processor may operate to calculate as the control amount the crank angle at which the combustion ratio becomes a predetermined ratio, based on information from a combustion pressure sensor. In this case, the at least one processor may operate to execute the operation amount change processing as follows.

According to one example of the control amount calculation processing, the at least one processor may operate to change the ignition timing of the internal combustion engine to an advance side when the n-cycle error exceeds the positive change determination threshold at a predetermined number of combustion cycles and doesn't exceed the negative change determination threshold at any combustion cycle. Note that, in this application, that the n-cycle error exceeds a threshold means that the magnitude of the n-cycle error exceeds the magnitude of the threshold.

According to another example of the control amount calculation processing, the at least one processor may operate to change the ignition timing of the internal combustion engine to the retardation side when the n-cycle error exceeds the negative change determination threshold at a predetermined number of combustion cycles and doesn't exceed the positive change determination threshold at any combustion cycle.

According to another example of the control amount calculation processing, the at least one processor may operate to change the opening of an EGR valve of the internal combustion engine to the close side when the n-cycle error exceeds the positive change determination threshold at a predetermined number of combustion cycles and exceeds the negative change determination threshold at a predetermined number of combustion cycles.

In addition, in the operation amount change processing, the at least one processor may operate to, in the threshold set processing, set a positive abnormality determination threshold that is larger than the positive change determination threshold and a negative abnormality determination threshold that is larger than the negative change determination threshold, based on the standard error of the reference normal population in the case where the number of data is n. In this case, the at least one processor may operate to change at least one of the plurality of the operation amount to operate the internal combustion engine in a failsafe mode when the n-cycle error exceeds the positive abnormality determination threshold at a predetermined number of combustion cycles or exceeds the negative abnormality determination threshold at a predetermined number of combustion cycles.

As configured as described above, the controller according to the present disclosure changes at least one operation amount among the plurality of operation amounts affecting the control amount for each change cycle, one change cycle consisting of N combustion cycles. Specifically, the controller chooses the reference normal population of the control amount under the current operating condition of the internal combustion engine from the plurality of reference normal populations set for each operating condition of the internal combustion engine. Then, the controller, in each combustion cycle from the first combustion cycle to the Nth combustion cycle that composes the change cycle, calculates the n-cycle average that is the average of the control amounts from the first combustion cycle to the nth combustion cycle, calculates the n-cycle error that is the error of the n-cycle average with respect to the average of the reference normal population, and sets both the positive change determination threshold and the negative change determination threshold with respect to the n-cycle error, based on the standard error of the reference normal population in the case where the number of data is n. And then, the controller chooses an operation amount to be changed from the plurality of operation amounts, based on the comparison between the series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and the series of the positive change determination thresholds from the first combustion cycle to the Nth combustion cycle and the comparison between the series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and the series of the negative change determination thresholds from the first combustion cycle to the Nth combustion cycle.

According to the controller that operates as above, an operation amount to be changed is chosen based on a dispersion mode of the control amount. This makes it possible to prevent overcontrolling to the fluctuation of the control amount caused by stochastic dispersion and also ensure quick response with respect to the fluctuation of the control amount caused by a factor other than a stochastic one.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram showing a configuration of an engine control system according to the first embodiment of the present disclosure;

FIG. 2 is a block diagram showing processing executed by a controller according to the first embodiment of the present disclosure;

FIG. 3 is a diagram for illustrating a hypothesis test according to the first embodiment of the present disclosure;

FIG. 4 is a diagram showing an example of the result of the hypothesis test according to the first embodiment of the present disclosure;

FIG. 5 is a diagram showing an example of the result of the hypothesis test according to the first embodiment of the present disclosure;

FIG. 6 is a diagram showing an example of the result of the hypothesis test according to the first embodiment of the present disclosure;

FIG. 7 is a diagram for illustrating a change cycle at which an operation amount is changed;

FIG. 8 is a flowchart showing a control flow of engine control according to the first embodiment of the present disclosure;

FIG. 9 is a diagram for illustrating a hypothesis test according to a second embodiment of the present disclosure;

FIG. 10 is a diagram showing an example of the result of the hypothesis test according to the second embodiment of the present disclosure;

FIG. 11 is a diagram showing an example of the result of the hypothesis test according to the second embodiment of the present disclosure;

FIG. 12 is a diagram showing an example of the result of the hypothesis test according to the second embodiment of the present disclosure;

FIG. 13 is a diagram showing an example of the result of the hypothesis test according to the second embodiment of the present disclosure;

FIG. 14 is a block diagram showing a configuration of an engine control system according to the second embodiment of the present disclosure; and

FIG. 15 is a flowchart showing a control flow of engine control according to the second embodiment of the present disclosure.

DETAILED DESCRIPTION

Hereunder, an embodiment of the present disclosure will be described with reference to the drawings. Note that when the numerals of numbers, quantities, amounts, ranges and the like of respective elements are mentioned in the embodiment shown as follows, the present disclosure is not limited to the mentioned numerals unless specially explicitly described otherwise, or unless the disclosure is explicitly specified by the numerals theoretically. Furthermore, structures and steps that are described in the embodiment shown as follows are not always indispensable to the disclosure unless specially explicitly shown otherwise, or unless the disclosure is explicitly specified by the structures or the steps theoretically.

First Embodiment

FIG. 1 is a block diagram showing a configuration of an engine control system according to the first embodiment of the present disclosure. The control system is used for an engine (internal combustion engine) 2 mounted on an automobile and the like, and comprises at least an engine 2, a plurality of sensors 4 for detecting conditions of the engine 2 and a controller 10 for controlling the engine 2.

The engine 2 is, for example, a spark-ignition internal combustion engine fueled by gasoline. The engine 4 comprises an ignition system that can adjust an ignition timing with the energization period of an ignition coil, and an EGR system that can adjust an introducing amount of EGR gas with the opening of an EGR valve. The plurality of sensors 4 include at least a combustion pressure sensor and a crank angle sensor. The combustion pressure sensor is installed in each cylinder of the engine 2 and outputs a signal corresponding to a combustion pressure in a combustion chamber. The crank angle sensor outputs a signal corresponding to a crank angle of the engine 2. The controller 10 receives the signal of the sensor 4 and calculates a control amount of the engine 2 based on information included in the signal of the sensor 4. The controller 10 includes at least one memory and at least one processor as physical configurations. The at least one memory stores at least one program for engine control, and the at least one processor reads and executes the at least one program from the at least one memory.

FIG. 2 is a block diagram showing part of the processing executed by the controller 10. Processing related to the determination to change the operation amount of the engine 2 is extracted among different kinds of processing executed by the controller 10, and expressed with blocks in FIG. 2. As shown in FIG. 2, the processing executed by the controller 10 includes control amount calculation processing and operation amount change processing. The operation amount change processing includes average calculation processing, error calculation processing and threshold set processing. For the determination to change the operation amount, a hypothesis test and a statistical decision is used as described below. Hereinafter, with reference to FIGS. 3 to 7, the hypothesis test and the statistical decision will be described together with the contents of each processing.

The controller 10 calculates a control amount related to combustion of the engine 2 in the control amount calculation processing. The control amount related to combustion of the engine 2 calculated in the present embodiment is CA50. CA50 means the crank angle at which combustion ratio becomes 50%. The combustion ratio is also referred to as combustion mass ratio, which means the ratio of burnt mass to mass of fuel per combustion supplied to the combustion chamber. The combustion ratio at an arbitrary crank angle can be calculated as the ratio of the heat release at the arbitrary crank angle to the final total heat release. The heat release is the total amount of the heat generated in the combustion chamber from the start of the combustion in one combustion cycle. Therefore, the heat release at an arbitrary crank angle is calculated by integrating the heat release rate calculated for each unit crank angle, with the section from the combustion start angle to the arbitrary crank angle as an integration section. The heat release rate is the amount of heat per unit crank angle generated in the combustion chamber, and can be calculated from the pressure in the combustion chamber measured by the combustion pressure sensor. The controller 10 calculates CA50 for each combustion cycle in the control amount calculation processing.

Since the engine 2 has an individual difference and aged deterioration, CA 50 has dispersion for each combustion cycle even if the operation amount is the same. However, the dispersion includes dispersion that occurs even with a reference engine having the specifications as designed. The dispersion of CA 50 per combustion cycle that occurs in the reference engine is stochastic dispersion according to the normal distribution. Here, data of CA 50 obtained from the reference engine is referred to as “reference normal population”. The reference normal population is created, for example, for each operating condition defined by engine speed and engine load.

The average of CA50 from the first cycle to the nth cycle obtained in the engine is referred to as “n-cycle average” and is represented by “μ_(n)”. The processing of calculating the n-cycle average μ_(n)is the average calculation processing. Further, the average of the reference normal population is denoted by “μ_(o)”, and the standard deviation of the reference normal population is denoted by “σ_(o)”. Building a null hypothesis that the n-cycle average μ_(n) of CA 50 is equal to the average μ_(o) of the reference normal population, if this null hypothesis is true, data Z calculated by the following equation follows a standard normal distribution according to the number n of data.

$Z = {\left. \frac{{\mu_{n} - {\mu\_ o}}}{\sigma_{o}/\sqrt{n}} \right.\sim{N\left( {0,1} \right)}}$

When a significance level is denoted by “α” and a critical value for the data Z is denoted by “Z_(α/2)”, the critical value Z_(α/2) can be calculated by the following equation. However, the significance level a is a numerical value determined by adaptation at the time of design.

${1 - \alpha} = {\int_{- Z_{\alpha/2}}^{Z_{\alpha/2}}{\frac{1}{2\pi}{\exp\left( {- \frac{Z^{2}}{2}} \right)}{dZ}}}$

The error μ_(n)-μ_(o) of the n-cycle average μ_(n)with respect to the average μ_(o) of the reference normal population is referred to as “n-cycle error”. The processing of calculating the n-cycle error is the error calculation processing. If the dispersion of CA 50 in the engine 2 for each combustion cycle is stochastic dispersion in accordance with the normal distribution, the following equation is established for the n-cycle error. In the following equation, σ_(o)/n^(1/2) is a standard error of the reference normal population when there are n number of data. The value obtained by multiplying the standard error σ_(o)/n^(1/2) by the negative critical value Z_(α/2) is the negative threshold of the n-cycle error, and the value obtained by multiplying the standard error σ_(o)/n^(1/2) by the positive critical value Z_(α/2) is the positive threshold of the n-cycle error. The processing of setting these thresholds is the threshold set processing. If the following equation is not established, it means that the fluctuation of CA 50 includes a fluctuation caused by a factor other than a stochastic one.

${- \frac{Z_{\alpha/2}\sigma_{o}}{\sqrt{n}}} \leq {\mu_{n} - \mu_{o}} \leq \frac{Z_{\alpha/2}\sigma_{o}}{\sqrt{n}}$

FIG. 3 is a graph showing the above equation. In this graph, the curve drawn in the region where the n-cycle error is positive is a curve showing a series of Z_(α/2)*σ_(o)/n^(1/2), which is the positive threshold of the above equation, and the curve drawn in the region where the n-cycle error is negative is a curve showing a series of −Z_(α/2)*σ_(o)/n^(1/2), which is the negative threshold of the above equation. The region of the n-cycle error from the negative threshold to the positive threshold is referred to as “Non Critical Region”, and is denoted by “NCR” in FIG. 3. Also, the region of the n-cycle error outside the negative threshold and the region of the n-cycle error outside the positive threshold are referred to as “Critical Region”, and are denoted by “CR” in FIG. 3. According to the central limit theorem, NCR becomes narrower as the number n of data becomes larger. This means that, when the number n of data is small, a large error is allowed, but an allowable error becomes smaller as the number n of data becomes larger.

FIGS. 4 to 6 are diagrams showing examples of the result of the hypothesis test according to the present embodiment. In each figure, the black circles represent the n-cycle error data calculated for each combustion cycle. FIG. 4 shows an example in which the n-cycle error is within the range from the negative threshold to the positive threshold at all the combustion cycles. This kind of example is referred to as “CASE (A)”.

FIG. 5 shows an example in which the n-cycle error exceeds the positive threshold at some combustion cycles and exceeds the negative threshold at another combustion cycles. This kind of example is referred to as “CASE (B)”.

FIG. 6 shows an example in which the n-cycle error exceeds the positive threshold at some combustion cycles and doesn't exceed the negative threshold at any combustion cycle, and an example in which the n-cycle error exceeds the negative threshold at some combustion cycles and doesn't exceed the positive threshold at any combustion cycle. The former example is referred to as “CASE (C)”, and the latter example is referred to as “CASE (D)”.

In the case of CASE (A), as the fluctuation of CA50 is caused by stochastic dispersion, a statistical decision that it is not necessary to change the operation amount can be made. On the contrary, in the case of CASE (B), CASE (C) and CASE (D), as the fluctuation of CA50 includes a factor other than a stochastic one, a statistical decision that it is better to change the operation amount can be made. The controller 50 changes the operation amount affecting CA50 in accordance with such a statistical decision.

The operation amount affecting CA50 includes at least an ignition timing and an EGR valve opening. When the dispersion of the n-cycle average μ_(n) with respect to the average μ_(o) of the reference normal population is large as CASE (B), it is assumed that large combustion fluctuation is happening. Therefore, as a countermeasure for CASE (B), the EGR valve opening is changed to the close side to reduce an EGR rate.

When the n-cycle average μ_(n) deviates to the positive side as a whole with respect to the average μ_(o) of the reference normal population as CASE (C), it is assumed that the ignition timing is excessively retarded. Therefore, as a countermeasure for CASE (C), the ignition timing is changed to the advance side. On the contrary, when the n-cycle average μ_(o) deviates to the negative side as a whole with respect to the average μ_(o) of the reference normal population as CASE (D), it is assumed that the ignition timing is excessively advanced. Therefore, as a countermeasure for CASE (D), the ignition timing is changed to the retardation side.

By the way, it is rare for the engine 2 to keep operating at a constant operating condition, and the operating condition fluctuates frequently. If the operating condition fluctuates, the reference normal population is changed, so the number of data of the n-cycle average μ_(n) cannot be continuously increased. However, according to the central limit theorem, the statistical decision can be made even from a small number of data. In the present embodiment, as shown in FIG. 7, the combustion cycles for collecting data are limited to a predetermined number N of cycles (N is an integer of 2 or more, for example, 6), and the above-described statistical decision is made every predetermined number N of cycles. In other words, the controller 10, in the operation amount change processing, changes the ignition timing or the EGR valve opening for each change cycle, one change cycle consisting of N combustion cycles.

In summary, the controller 10 executes the operation amount change processing in the following procedure. First, the controller 10 chooses the reference normal population of CA50 under the current operating condition of the engine 2 among a plurality of reference normal populations set for each operating condition of the engine 2. Then, the controller 10 executes the average calculation processing, the error calculation processing, and the threshold set processing in each combustion cycle from the first combustion cycle to the Nth combustion cycle that composes the change cycle.

In the average calculation processing, the controller 10 calculates the n-cycle average μ_(n) that is the average of CA50 from the first combustion cycle to the nth (1<=n<=N) combustion cycle. In the error calculation processing, the controller 10 calculates the n-cycle error that is the error of the average μ_(n) with respect to the average μ_(o) of the reference normal population. Then, in the threshold set processing, the controller 10 sets both the positive threshold Z_(α/2)*σ_(o)/n^(1/2) and the negative threshold −Z_(α/2)*σ_(o)/n^(1/2) with respect to the n-cycle error based on the standard error of the reference normal population in the case where the number of data is n. These thresholds are thresholds for determining whether to change the operation amount, and corresponds to the change determination threshold defined in claims.

After the above processing, the controller 10 compares the series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and the series of the positive thresholds from the first combustion cycle to the Nth combustion cycle. Also, the controller 10 compares the series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and the series of the negative thresholds from the first combustion cycle to the Nth combustion cycle. Then, the controller 10 determines which of CASE (A), CASE (B), CASE (C) and CASE (D) these comparison results apply to, and chooses the operation amount to be changed between the ignition timing and the EGR valve opening.

The above described processing of the controller 10 is executed as part of engine control by the controller 10. FIG. 8 is a flowchart showing a control flow of the engine control according to the present embodiment. The controller 10 executes calculation processing shown in the flowchart at every combustion cycle. Hereinafter, the control flow of the engine control according to the present embodiment will be described along the flowchart. In the control flow, the number of combustion cycles composing the change cycle is set to K_(th).

First, in step S101, the controller 10 calculates parameters required for the hypothesis test. Specifically, the controller 10 calculates the n-cycle error by the average calculation processing and the error calculation processing, and sets the positive and negative thresholds with respect to the n-cycle error by the threshold set processing.

In step S102, the controller 10 determines whether or not the n-cycle error is within CR, based on a comparison between the n-cycle error and the positive threshold and a comparison between the n-cycle error and the negative threshold. As shown in FIG. 3, CR exists on both the positive side and the negative side with respect to NCR. When the n-cycle error is within any one of CR on the positive side and CR on the negative side, the control flow proceeds to step S103. In step S103, the controller 10 stores the sign of CR containing the n-cycle error. If the n-cycle error is outside CR, the processing in step S103 is skipped.

In step S104, the controller 10 increments a counter value k for counting the number of combustion cycles by 1. In step S105, the controller 10 determines whether or not the counter value k reaches the number K_(th) of combustion cycles composing the change cycle. When the counter value k does not reach the number K_(th) of combustion cycles, all processing in the remaining steps is skipped.

When the counter value k reaches the number K_(th) of combustion cycles, the controller 10 executes a determination in step S106. In step S106, the controller 10 determines whether or not the sign of CR is stored. If the sign of CR is not stored, this means that all the n-cycle errors from the first cycle to the K_(th)th cycle are within NCR. This corresponds to CASE (A) shown in FIG. 4, so changing the operation amount isn't required. In this case, the control flow proceeds to step S112.

When the sign of CR is stored, the controller 10 executes a determination in step S107. In step S107, the controller 10 determines whether or not the stored sign of CR includes both the positive sign and the negative sign. If both the positive sign and the negative sign are included, this corresponds to CASE (B) shown in FIG. 5. In this case, the control flow proceeds to step S108. In step S108, the controller 10 decreases the EGR valve opening by a predetermined amount.

According to this control flow, if the n-cycle error exceeds each of the negative threshold and the positive threshold even once, the EGR valve opening is decreased by the predetermined amount. However, the EGR valve opening may be decreased with a condition that the n-cycle error exceeds the positive threshold at a plurality of combustion cycles, and the n-cycle error exceeds the negative threshold at a plurality of combustion cycles. Further, the decreasing amount of the EGR valve opening is fixed in this control flow, but the decreasing amount may be increased according to the number of times the n-cycle error exceeds the threshold.

When the stored sign of CR includes any one of the positive sign and the negative sign, the controller 10 executes a determination in step S109. In step S109, the controller 10 determines whether or not the stored sign of CR is the positive sign only. If the stored sign of CR is the positive sign only, this corresponds to CASE (C) shown in FIG. 6. In this case, the control flow proceeds to step S110. In step S110, the controller 10 advances the ignition timing by a predetermined amount.

According to this control flow, if the n-cycle error exceeds the positive threshold even once, the ignition timing is advanced by the predetermined amount. However, the ignition timing may be advanced with a condition that the n-cycle error exceeds the positive threshold at a plurality of combustion cycles. Further, the advancing amount of the ignition timing is fixed in this control flow, but the advancing amount may be increased according to the number of times the n-cycle error exceeds the positive threshold.

If the result of the determination in step S109 is negative, that is, the stored sign of CR is the negative sign only, this corresponds to CASE (D) shown in FIG. 6. In this case, the control flow proceeds to step S111. In step S111, the controller 10 retards the ignition timing by a predetermined amount.

According to this control flow, if the n-cycle error exceeds the negative threshold even once, the ignition timing is retarded by the predetermined amount. However, the ignition timing may be retarded with a condition that the n-cycle error exceeds the negative threshold at a plurality of combustion cycles. Further, the retarding amount of the ignition timing is fixed in this control flow, but the retarding amount may be increased according to the number of times the n-cycle error exceeds the negative threshold.

After the processing in step S108, S110 or S111, the control flow proceeds to step S112. In step S112, the controller 10 resets the counter value k to zero and clears the memory of the sign of CR. Further, the controller 10 chooses the reference normal population matching the current operating condition of the engine 2 from the plurality of reference normal populations set for each operating condition of engine 2, and updates the average and standard deviation of the reference normal population.

Second Embodiment

The embodiment of the present disclosure differs from the first embodiment in the threshold setting in the hypothesis test. FIG. 9 is a diagram for illustrating the hypothesis test according to the present embodiment. In the present embodiment, three critical values of “a”, “b” and “c” are set. “a” is the smallest, “c” is the largest, and “b” is an intermediate between “a” and “c”. “a” is a value that defines a range from which deviation must occur statistically, and is set to, for example, about 0 to 1. “b” is a value that defines a range possible in the initial state of the engine 2, that is, a value of the reference normal population, and is set to, for example, about 3 to 4. “c” is a value almost impossible in the initial state and a value within a range that is correctable even in consideration of response delay, and is set to, for example, about 4 to 5.

Hereinafter, the positive threshold a*σ_(o)/n^(1/2) defined by the critical value a is referred to as “positive a-threshold”, and the negative threshold −a*σ_(o)/n^(1/2) is referred to as “negative a-threshold”. The positive threshold b*σ_(o)/n^(1/2) defined by the critical value b is referred to as “positive b-threshold”, and the negative threshold −b*σ_(o)/n_(1/2) is referred to as “negative b-threshold”. The positive threshold c*σ_(o)/n^(1/2) defined by the critical value c is referred to as “positive c-threshold”, and the negative threshold −c*σ_(o)/n^(1/2) is referred to as “negative c-threshold”.

The positive and negative b-thresholds corresponds to the positive and negative thresholds of the first embodiment, that is, the change determination threshold defined in claims. Therefore, if the n-cycle error is within the range from the negative b-threshold to the positive b-threshold shown in FIG. 9, it is determined that the fluctuation of CA50 is caused by stochastic dispersion. This corresponds to CASE (A) exemplified in the first embodiment. In the case of CASE (A), as the fluctuation of CA50 is caused by stochastic dispersion, a statistical decision that it is not necessary to change the operation amount can be made.

FIGS. 10 to 13 are diagrams showing examples of the result of the hypothesis test according to the present embodiment. FIG. 10 shows an example in which the n-cycle error exceeds the positive b-threshold but doesn't exceed the positive c-threshold at some combustion cycles, and exceeds the negative b-threshold but doesn't exceed the negative c-threshold at another combustion cycles. This corresponds to CASE (B) exemplified in the first embodiment. In the case of CASE (B), the EGR valve opening is changed to the close side to decrease the EGR rate in order to suppress combustion fluctuation. However, a decrease in the EGR rate makes a combustion timing advance. Therefore, in the present embodiment, retarding the ignition timing is also executed.

FIG. 11 shows an example in which the n-cycle error exceeds the positive b-threshold but doesn't exceed the positive c-threshold at some combustion cycles, and doesn't exceed the negative b-threshold at any combustion cycle. This corresponds to CASE (C) exemplified in the first embodiment. Further, FIG. 11 shows an example in which the n-cycle error exceeds the negative b-threshold but doesn't exceed the negative c-threshold at some combustion cycles, and doesn't exceed the positive b-threshold at any combustion cycle. This corresponds to CASE (D) exemplified in the first embodiment. In the case of CASE (C), the ignition timing is changed to the advance side. In the case of CASE (D), the ignition timing is changed to the retardation side.

FIG. 12 shows an example in which the n-cycle error is within the range from the negative a-threshold to the positive a-threshold at all the combustion cycles. This kind of example is referred to as “CASE (E)”. As CASE (E) is included in the case of CASE (A), there is no need to change the operation amount in order to cope with the fluctuation of CA50 caused by a factor other than a stochastic one. However, if there is room to optimize the engine control by changing the operation amount, even if the dispersion of CA 50 is increased, it is preferable to change the operation amount as long as the dispersion is kept within an allowable range.

Specifically, when the introduced amount of EGR gas is smaller than a planned amount, combustion fluctuation is decreased, and thereby the dispersion of CA 50 is decreased as in the case of CASE (E). However, from the viewpoint of improving fuel efficiency, even if combustion fluctuation is increased, it is preferable to open the EGR valve to increase the introduction amount of EGR gas. Therefore, in the case of CASE (E), the introduction amount of EGR gas is increased by changing the EGR valve opening to the open side by a predetermined amount.

FIG. 13 shows an example in which the n-cycle error exceeds the negative c-threshold at some combustion cycles. This kind of example is referred to as “CASE (F)”. The positive and negative c-thresholds are thresholds that mean that the fluctuation of CA 50 is beyond a correctable range, that is, some abnormality has occurred in the engine 2. The positive and negative c-thresholds correspond to the abnormality determination threshold defined in claims. In the case of CASE (F), at least one of the plurality of operation amounts is changed to operate the engine 2 in a failsafe mode. For example, the ignition timing may be retarded to decrease the output of the engine 2, or the fuel amount may be decreased to decrease the output of the engine 2, or the throttle opening may be decreased to decrease the output of the engine 2.

FIG. 14 is a block diagram showing a configuration of the engine control system according to the present embodiment. The controller 10 comprises a hypothesis test and statistical decision unit 11. The hypothesis test and statistical decision unit 11 calculates CA50 as a control amount based on information from the sensor 4, and determines whether to change the operation amount by using the hypothesis test and the statistical decision. Specifically, the controller 10 executes the control amount calculation processing and operation amount change processing described in the first embodiment, and calculates the n-cycle error of CA50 at each combustion cycle that composes one change cycle. Then, the controller 10 determines to which of the above CASEs (A) to (F) the relationship between the series of the n-cycle errors and the series of thresholds in one change cycle corresponds.

The controller 10 comprises a first feed-forward model 12 (denoted by “1ST FF MODEL” in FIG. 14) and a second feed-forward model 13 (denoted by “2ND FF MODEL” in FIG. 14). The first feed-forward model 12 determines a fuel amount, a fuel pressure, an EGR valve opening, a valve timing, and an ignition timing, which are operation amounts, based on an operating condition of the engine 2 and a request for the engine 2. The first feed-forward model 12 is a model that relates the operating condition of the engine 2 and the request for the engine 2 to these operation amounts. The second feed-forward model 13 determines a target value of CA50 based on the request for the engine 2. The target value of CA50 is equal to the average of the reference normal population of CA50.

The controller 10 comprises a subtracter 14, a PID control unit 15 and an adder 16. The subtracter 14 calculates a difference between the target value of CA50 determined by the second feed-forward model 13 and an actual value of CA50. The PID control unit 15 calculates the feed-back value of the ignition timing by PID control based on the difference between the target value of CA50 and the actual value of CA50. The adder 16 adds the feed-back value of the ignition timing calculated by the PID control unit 15 to the ignition timing (feed-forward value) calculated by the first feed-forward model 12.

Further, the controller 10 comprises a failsafe unit 17 and an output switch unit 18. The failsafe unit 17 outputs each operation amount for operating the engine 2 in the failsafe mode. The output switch unit 18 switches the operation amount to be used for operating the engine 2 between the operation amount output from the first feed-forward model 12 and the operation amount output from the failsafe unit 17. Usually, the operation amount output from the first feed-forward model 12 is used, and, when a switching signal is input from the hypothesis test and statistical decision unit 11, the operation amount to be used is switched to the operation amount output from the failsafe unit 17.

When it is determined that the relation between the series of the n-cycle errors and the series of thresholds in one change cycle corresponds to any one of CASEs (B), (C) and (D), the hypothesis test and statistical decision unit 11 inputs the actual value of CA50, specifically the average of CA50 in one change cycle to the subtracter 14. Further, when it is determined that the above relation corresponds to CASE (B), the hypothesis test and statistical decision unit 11 corrects the first feed-forward model 12 to change the EGR valve opening to the close side. When it is determined that the above relation corresponds to CASE (E), the hypothesis test and statistical decision unit 11 corrects the first feed-forward model 12 to change the EGR valve opening to the open side. When it is determined that the above relation corresponds to CASE (F), the hypothesis test and statistical decision unit 11 inputs the switching signal to the output switch unit 18.

FIG. 15 is a flowchart showing a control flow of the engine control according to the present embodiment. In the present embodiment, the controller 10 executes calculation processing shown in the flowchart at every change cycle. Hereinafter, the control flow of the engine control according to the present embodiment will be described along the flowchart.

First, in step S201, the controller 10 calculates parameters required for the hypothesis test. Specifically, the controller 10 calculates the n-cycle error at each combustion cycle by the average calculation processing and the error calculation processing, using CA50 calculated at each combustion cycle from the first combustion cycle to the Nth combustion cycle that composes one change cycle, and sets the positive and negative thresholds at each combustion cycle by the threshold set processing.

In step S202, the controller 10 determines whether or not the n-cycle errors at all the combustion cycles calculated in step S201 are within the range from the negative b-threshold to the positive b-threshold. If the result of the determination in step S202 is positive, the control flow proceeds to step S203. In step S203, the controller 10 calculates the unbiased variance U_(N) ² of CA50 based on the average μ_(n) of CA50 from the first combustion cycle to the Nth combustion cycle. However, the variance σ_(N) ² may be calculated instead of the unbiased variance U_(N) ².

Next, in step S204, the controller 10 determines whether or not the n-cycle errors at all the combustion cycles calculated in step S201 are within the range from the negative a-threshold to the positive a-threshold. If the result of the determination in step S204 is positive, this corresponds to CASE (E) shown in FIG. 12. In this case, the control flow proceeds to step S205. In step S205, the controller 10 compares the unbiased variance U_(N) ² and average μ_(n) calculated in step S203 with the variance σ_(o) ² and average μ_(o) of the reference normal population, and reflects the difference between them in the first feed-forward model 12. Specifically, the controller 10 changes the EGR valve opening to the open side, the EGR valve opening being stored in association with an operating condition of the engine 2 and a request for the engine 2 in the first feed-forward model 12, so that the unbiased variance U_(N) ² and average approach the variance σ_(o) ² and average μ_(o) of the reference normal population. If the result of the determination in step S204 is negative, the control flow skips step S205 to end.

If the result of the determination in step S202 is negative, the control flow proceeds to step S206. In step S206, the controller 10 determines whether or not the n-cycle error exceeds the positive b-threshold at a predetermined number or more of combustion cycles, and doesn't exceed the positive c-threshold at any combustion cycle. Further, the controller 10 determines whether or not the n-cycle error exceeds the negative b-threshold at a predetermined number or more of combustion cycles, and doesn't exceed the negative c-threshold at any combustion cycle.

If both the results of the determinations in step S206 are positive, this corresponds to CASE (B) shown in FIG. 10. If only the result of the former determination in step S206 is positive, this corresponds to CASE (C) shown in FIG. 11. If only the result of the latter determination in step S206 is positive, this corresponds to CASE (D) shown in FIG. 11. In these cases, the control flow proceeds to step S207. In step S207, the controller 10 changes the ignition timing by PID control. However, in the case of CASE (B), the controller 10 also corrects the first feed-forward model 12 to change the EGR valve opening to the close side.

If both the results of the determinations in step S206 are negative, this corresponds to CASE (F) shown in FIG. 10. In this case, the control flow proceeds to step S208. In step S208, the controller 10 changes at least one of the plurality of the operation amounts to operate the engine 2 in the failsafe mode.

Other Embodiments

CA 50 is an example of the control amount related to combustion. The crank angle at which combustion ratio becomes a predetermined ratio other than 50 percent may be used as the control amount.

As another embodiment of the control amount calculation processing, the controller 10 may calculate the crank angle at which combustion pressure is maximized, that is, LPP as the control amount, based on information from a combustion pressure sensor. LPP is one of the control amounts related to combustion. In this case, the controller 10 may execute the operation amount change processing as in the following example.

In one example of the operation amount change processing when using LPP as the control amount, when the n-cycle error of LPP exceeds the positive change determination threshold at a predetermined number or more of combustion cycles, and doesn't exceed the negative change determination threshold at any combustion cycle, the controller 10 changes the ignition timing to the advance side. In another example, when the n-cycle error of LPP exceeds the negative change determination threshold at a predetermined number or more of combustion cycles, and doesn't exceed the positive change determination threshold at any combustion cycle, the controller 10 changes the ignition timing to the retardation side. In yet another example, when the n-cycle error of LPP exceeds the positive change determination threshold at a predetermined number or more of combustion cycles, and exceeds the negative change determination threshold at a predetermined number or more of combustion cycles, the controller 10 changes the EGR valve opening to the close side.

As yet another embodiment of the control amount calculation processing, the controller 10 may calculate the crank angle at which knocking starts or the crank angle at which knocking becomes the maximum as the control amount, based on information from a knock sensor. Both the knocking start crank angle and the knocking maximum crank angle are ones of the control amounts related to combustion. In this case, the controller 10 may execute the operation amount change processing as in the following example.

In one example of the operation amount change processing when using the knocking start crank angle or the knocking maximum crank angle as the control amount, when the n-cycle error of the knocking start crank angle or the knocking maximum crank angle exceeds the positive change determination threshold at a predetermined number or more of combustion cycles, and doesn't exceed the negative change determination threshold at any combustion cycle, the controller 10 changes the ignition timing to the advance side. In another example, when the n-cycle error of the knocking start crank angle or the knocking maximum crank angle exceeds the negative change determination threshold at a predetermined number or more of combustion cycles, and doesn't exceed the positive change determination threshold at any combustion cycle, the controller 10 changes the ignition timing to the retardation side. In yet another example, when the n-cycle error of the knocking start crank angle or the knocking maximum crank angle exceeds the positive change determination threshold at a predetermined number or more of combustion cycles, and exceeds the negative change determination threshold at a predetermined number or more of combustion cycles, the controller 10 changes the EGR valve opening to the close side.

As yet another embodiment of the control amount calculation processing, the controller 10 may calculate a knock strength or its logarithm value as the control amount, based on information from a knock sensor. The knocking strength is the maximum amplitude of knocking. The knock strength and its logarithm value are ones of the control amounts related to combustion. In the operation amount change processing when using a physical quantity representing the knock intensity or its logarithmic value as the control amount, the controller 10 changes the ignition timing to the retardation side when the n-cycle error exceeds the positive change determination threshold at a predetermined number or more of combustion cycles, or exceeds the negative change determination threshold at a predetermined number or more of combustion cycles.

The present disclosure is also applicable to a controller for a compression self-ignition engine. In this case, CA 50 or LPP can be used as the control amount. As the operation amount, a fuel injection timing, an EGR valve opening and the like can be used. 

What is claimed is:
 1. A controller for an internal combustion engine comprising: at least one processor; and at least one memory coupled to the at least one processor, the at least one memory including at least one computer-executable program that upon execution causes the at least one processor to execute: control amount calculation processing of calculating a control amount relating to combustion of the internal combustion engine for each combustion cycle, based on information from a sensor which detects a state of the internal combustion engine; and operation amount change processing of changing at least one operation amount among a plurality of operation amounts affecting the control amount for each change cycle, one change cycle consisting of N (2<=N) combustion cycles; wherein, in the operation amount change processing, the at least one processor operates to: choose a reference normal population of the control amount under a current operating condition of the internal combustion engine from a plurality of reference normal populations set for each operating condition of the internal combustion engine; execute, in each combustion cycle from a first combustion cycle to a Nth combustion cycle that composes the change cycle, average calculation processing of calculating a n-cycle average that is an average of the control amounts from the first combustion cycle to a nth (1<=n<=N) combustion cycle, error calculation processing of calculating a n-cycle error that is an error of the n-cycle average with respect to an average of the reference normal population, and threshold set processing of setting both a positive change determination threshold and a negative change determination threshold with respect to the n-cycle error, based on a standard error of the reference normal population in a case where number of data is n; and choose an operation amount to be changed from the plurality of operation amounts, based on a comparison between a series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and a series of the positive change determination thresholds from the first combustion cycle to the Nth combustion cycle and a comparison between the series of the n-cycle errors from the first combustion cycle to the Nth combustion cycle and a series of the negative change determination thresholds from the first combustion cycle to the Nth combustion cycle.
 2. The controller according to claim 1, wherein the at least one processor operates to: in the control amount calculation processing, calculate as the control amount a crank angle at which a combustion ratio becomes a predetermined ratio, based on information from a combustion pressure sensor; and in the operation amount change processing, change an ignition timing of the internal combustion engine to an advance side when the n-cycle error exceeds the positive change determination threshold at a predetermined number of combustion cycles and doesn't exceed the negative change determination threshold at any combustion cycle.
 3. The controller according to claim 1, wherein the at least one processor operates to: in the control amount calculation processing, calculate as the control amount a crank angle at which a combustion ratio becomes a predetermined ratio, based on information from a combustion pressure sensor; and in the operation amount change processing, change an ignition timing of the internal combustion engine to a retardation side when the n-cycle error exceeds the negative change determination threshold at a predetermined number of combustion cycles and doesn't exceed the positive change determination threshold at any combustion cycle.
 4. The controller according to claim 1, wherein the at least one processor operates to: in the control amount calculation processing, calculate as the control amount a crank angle at which a combustion ratio becomes a predetermined ratio, based on information from a combustion pressure sensor; and in the operation amount change processing, change an opening of an EGR valve of the internal combustion engine to a close side when the n-cycle error exceeds the positive change determination threshold at a predetermined number of combustion cycles and exceeds the negative change determination threshold at a predetermined number of combustion cycles.
 5. The controller according to claim 1, Wherein, in the operation amount change processing, the at least one processor operates to: in the threshold set processing, set a positive abnormality determination threshold that is larger than the positive change determination threshold and a negative abnormality determination threshold that is larger than the negative change determination threshold, based on the standard error of the reference normal population in the case where number of data is n; and change at least one of the plurality of the operation amount to operate the internal combustion engine in a failsafe mode when the n-cycle error exceeds the positive abnormality determination threshold at a predetermined number of combustion cycles or exceeds the negative abnormality determination threshold at a predetermined number of combustion cycles. 